﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OnlineCourse.Model.Entity
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class User
    {
        public User()
        {
            CreatedDate = DateTime.Now;
            UpdatedDate = DateTime.Now;
        }
        public Guid Id { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string HeadImage { get; set; }//用户头像
        public int Age { get; set; }
        public string Sex { get; set; }
        /// <summary>
        /// 账户余额
        /// </summary>
        public decimal Account { get; set; }//账户
        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }
        /// <summary>
        /// 回复集合
        /// </summary>
        public ICollection<Comment> Comments { get; set; }//回复评论
        /// <summary>
        /// 收藏集合
        /// </summary>
        public ICollection<LikeCollection> LikeCollections { get; set; }
        /// <summary>
        /// 用户支付集合
        /// </summary>
        public ICollection<PayOrder> PayOrders { get; set; }
        /// <summary>
        /// 用户购买订程集合
        /// </summary>
        public ICollection<BuyOrder> BuyOrders { get; set; }
        /// <summary>
        /// 用户领券记录集合
        /// </summary>
        public ICollection<CouponsRecord> CouponsRecords { get; set; }
   

    }
}
